-- ariship
-- created by panyl
-- 遗迹建筑功能-飞艇加强

return {
    canDevelop = function(id)
        local cond = SkyRelicFunctionM.query(id, "condition");

        -- 需要先激活飞艇
        local shipId = cond["ship_id"];

        return NewAirShipM.hasOwnShip(shipId);
    end,

    -- 飞艇限制
    limitDevelopDesc = function(id)
        local cond = SkyRelicFunctionM.query(id, "condition");
        local shipName = NewAirShipM.query(cond["ship_id"], "name");
        return string.format(getLocStr("relic_function_airship_limit"), shipName);
    end,
};
